<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  <title>LCOV - iris.info - /usr/include/sys/stat.h</title>
  <link rel="stylesheet" type="text/css" href="../../../gcov.css">
</head>

<body>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="title">LTP GCOV extension - code coverage report</td></tr>
    <tr><td class="ruler"><img src="../../../glass.png" width=3 height=3 alt=""></td></tr>

    <tr>
      <td width="100%">
        <table cellpadding=1 border=0 width="100%">
        <tr>
          <td class="headerItem" width="20%">Current&nbsp;view:</td>
          <td class="headerValue" width="80%" colspan=4><a href="../../../index.html">directory</a> - <a href="index.html">usr/include/sys</a> - stat.h</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Test:</td>
          <td class="headerValue" width="80%" colspan=4>iris.info</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Date:</td>
          <td class="headerValue" width="20%">2010-05-24</td>
          <td width="20%"></td>
          <td class="headerItem" width="20%">Instrumented&nbsp;lines:</td>
          <td class="headerValue" width="20%">20</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Code&nbsp;covered:</td>
          <td class="headerValue" width="20%">0.0 %</td>
          <td width="20%"></td>
          <td class="headerItem" width="20%">Executed&nbsp;lines:</td>
          <td class="headerValue" width="20%">0</td>
        </tr>
        </table>
      </td>
    </tr>
    <tr><td class="ruler"><img src="../../../glass.png" width=3 height=3 alt=""></td></tr>
  </table>

  <table cellpadding=0 cellspacing=0 border=0>
    <tr>
      <td><br></td>
    </tr>
    <tr>
      <td><pre class="source">
<span class="lineNum">       1 </span>                : /* Copyright (C) 1991, 1992, 1995-2004, 2005, 2006, 2007
<span class="lineNum">       2 </span>                :    Free Software Foundation, Inc.
<span class="lineNum">       3 </span>                :    This file is part of the GNU C Library.
<span class="lineNum">       4 </span>                : 
<span class="lineNum">       5 </span>                :    The GNU C Library is free software; you can redistribute it and/or
<span class="lineNum">       6 </span>                :    modify it under the terms of the GNU Lesser General Public
<span class="lineNum">       7 </span>                :    License as published by the Free Software Foundation; either
<span class="lineNum">       8 </span>                :    version 2.1 of the License, or (at your option) any later version.
<span class="lineNum">       9 </span>                : 
<span class="lineNum">      10 </span>                :    The GNU C Library is distributed in the hope that it will be useful,
<span class="lineNum">      11 </span>                :    but WITHOUT ANY WARRANTY; without even the implied warranty of
<span class="lineNum">      12 </span>                :    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
<span class="lineNum">      13 </span>                :    Lesser General Public License for more details.
<span class="lineNum">      14 </span>                : 
<span class="lineNum">      15 </span>                :    You should have received a copy of the GNU Lesser General Public
<span class="lineNum">      16 </span>                :    License along with the GNU C Library; if not, write to the Free
<span class="lineNum">      17 </span>                :    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
<span class="lineNum">      18 </span>                :    02111-1307 USA.  */
<span class="lineNum">      19 </span>                : 
<span class="lineNum">      20 </span>                : /*
<span class="lineNum">      21 </span>                :  *      POSIX Standard: 5.6 File Characteristics        &lt;sys/stat.h&gt;
<span class="lineNum">      22 </span>                :  */
<span class="lineNum">      23 </span>                : 
<span class="lineNum">      24 </span>                : #ifndef _SYS_STAT_H
<span class="lineNum">      25 </span>                : #define _SYS_STAT_H     1
<span class="lineNum">      26 </span>                : 
<span class="lineNum">      27 </span>                : #include &lt;features.h&gt;
<span class="lineNum">      28 </span>                : 
<span class="lineNum">      29 </span>                : #include &lt;bits/types.h&gt;           /* For __mode_t and __dev_t.  */
<span class="lineNum">      30 </span>                : 
<span class="lineNum">      31 </span>                : #if defined __USE_XOPEN || defined __USE_XOPEN2K || defined __USE_MISC \
<span class="lineNum">      32 </span>                :          || defined __USE_ATFILE
<span class="lineNum">      33 </span>                : # if defined __USE_XOPEN || defined __USE_XOPEN2K
<span class="lineNum">      34 </span>                : #  define __need_time_t
<span class="lineNum">      35 </span>                : # endif
<span class="lineNum">      36 </span>                : # if defined __USE_MISC || defined __USE_ATFILE
<span class="lineNum">      37 </span>                : #  define __need_timespec
<span class="lineNum">      38 </span>                : # endif
<span class="lineNum">      39 </span>                : # include &lt;time.h&gt;                /* For time_t resp. timespec.  */
<span class="lineNum">      40 </span>                : #endif
<span class="lineNum">      41 </span>                : 
<span class="lineNum">      42 </span>                : #if defined __USE_XOPEN || defined __USE_XOPEN2K
<span class="lineNum">      43 </span>                : /* The Single Unix specification says that some more types are
<span class="lineNum">      44 </span>                :    available here.  */
<span class="lineNum">      45 </span>                : # ifndef __dev_t_defined
<span class="lineNum">      46 </span>                : typedef __dev_t dev_t;
<span class="lineNum">      47 </span>                : #  define __dev_t_defined
<span class="lineNum">      48 </span>                : # endif
<span class="lineNum">      49 </span>                : 
<span class="lineNum">      50 </span>                : # ifndef __gid_t_defined
<span class="lineNum">      51 </span>                : typedef __gid_t gid_t;
<span class="lineNum">      52 </span>                : #  define __gid_t_defined
<span class="lineNum">      53 </span>                : # endif
<span class="lineNum">      54 </span>                : 
<span class="lineNum">      55 </span>                : # ifndef __ino_t_defined
<span class="lineNum">      56 </span>                : #  ifndef __USE_FILE_OFFSET64
<span class="lineNum">      57 </span>                : typedef __ino_t ino_t;
<span class="lineNum">      58 </span>                : #  else
<span class="lineNum">      59 </span>                : typedef __ino64_t ino_t;
<span class="lineNum">      60 </span>                : #  endif
<span class="lineNum">      61 </span>                : #  define __ino_t_defined
<span class="lineNum">      62 </span>                : # endif
<span class="lineNum">      63 </span>                : 
<span class="lineNum">      64 </span>                : # ifndef __mode_t_defined
<span class="lineNum">      65 </span>                : typedef __mode_t mode_t;
<span class="lineNum">      66 </span>                : #  define __mode_t_defined
<span class="lineNum">      67 </span>                : # endif
<span class="lineNum">      68 </span>                : 
<span class="lineNum">      69 </span>                : # ifndef __nlink_t_defined
<span class="lineNum">      70 </span>                : typedef __nlink_t nlink_t;
<span class="lineNum">      71 </span>                : #  define __nlink_t_defined
<span class="lineNum">      72 </span>                : # endif
<span class="lineNum">      73 </span>                : 
<span class="lineNum">      74 </span>                : # ifndef __off_t_defined
<span class="lineNum">      75 </span>                : #  ifndef __USE_FILE_OFFSET64
<span class="lineNum">      76 </span>                : typedef __off_t off_t;
<span class="lineNum">      77 </span>                : #  else
<span class="lineNum">      78 </span>                : typedef __off64_t off_t;
<span class="lineNum">      79 </span>                : #  endif
<span class="lineNum">      80 </span>                : #  define __off_t_defined
<span class="lineNum">      81 </span>                : # endif
<span class="lineNum">      82 </span>                : 
<span class="lineNum">      83 </span>                : # ifndef __uid_t_defined
<span class="lineNum">      84 </span>                : typedef __uid_t uid_t;
<span class="lineNum">      85 </span>                : #  define __uid_t_defined
<span class="lineNum">      86 </span>                : # endif
<span class="lineNum">      87 </span>                : #endif  /* X/Open */
<span class="lineNum">      88 </span>                : 
<span class="lineNum">      89 </span>                : #ifdef __USE_UNIX98
<span class="lineNum">      90 </span>                : # ifndef __blkcnt_t_defined
<span class="lineNum">      91 </span>                : #  ifndef __USE_FILE_OFFSET64
<span class="lineNum">      92 </span>                : typedef __blkcnt_t blkcnt_t;
<span class="lineNum">      93 </span>                : #  else
<span class="lineNum">      94 </span>                : typedef __blkcnt64_t blkcnt_t;
<span class="lineNum">      95 </span>                : #  endif
<span class="lineNum">      96 </span>                : #  define __blkcnt_t_defined
<span class="lineNum">      97 </span>                : # endif
<span class="lineNum">      98 </span>                : 
<span class="lineNum">      99 </span>                : # ifndef __blksize_t_defined
<span class="lineNum">     100 </span>                : typedef __blksize_t blksize_t;
<span class="lineNum">     101 </span>                : #  define __blksize_t_defined
<span class="lineNum">     102 </span>                : # endif
<span class="lineNum">     103 </span>                : #endif  /* Unix98 */
<span class="lineNum">     104 </span>                : 
<span class="lineNum">     105 </span>                : __BEGIN_DECLS
<span class="lineNum">     106 </span>                : 
<span class="lineNum">     107 </span>                : #include &lt;bits/stat.h&gt;
<span class="lineNum">     108 </span>                : 
<span class="lineNum">     109 </span>                : #if defined __USE_BSD || defined __USE_MISC || defined __USE_XOPEN
<span class="lineNum">     110 </span>                : # define S_IFMT         __S_IFMT
<span class="lineNum">     111 </span>                : # define S_IFDIR        __S_IFDIR
<span class="lineNum">     112 </span>                : # define S_IFCHR        __S_IFCHR
<span class="lineNum">     113 </span>                : # define S_IFBLK        __S_IFBLK
<span class="lineNum">     114 </span>                : # define S_IFREG        __S_IFREG
<span class="lineNum">     115 </span>                : # ifdef __S_IFIFO
<span class="lineNum">     116 </span>                : #  define S_IFIFO       __S_IFIFO
<span class="lineNum">     117 </span>                : # endif
<span class="lineNum">     118 </span>                : # ifdef __S_IFLNK
<span class="lineNum">     119 </span>                : #  define S_IFLNK       __S_IFLNK
<span class="lineNum">     120 </span>                : # endif
<span class="lineNum">     121 </span>                : # if (defined __USE_BSD || defined __USE_MISC || defined __USE_UNIX98) \
<span class="lineNum">     122 </span>                :      &amp;&amp; defined __S_IFSOCK
<span class="lineNum">     123 </span>                : #  define S_IFSOCK      __S_IFSOCK
<span class="lineNum">     124 </span>                : # endif
<span class="lineNum">     125 </span>                : #endif
<span class="lineNum">     126 </span>                : 
<span class="lineNum">     127 </span>                : /* Test macros for file types.  */
<span class="lineNum">     128 </span>                : 
<span class="lineNum">     129 </span>                : #define __S_ISTYPE(mode, mask)  (((mode) &amp; __S_IFMT) == (mask))
<span class="lineNum">     130 </span>                : 
<span class="lineNum">     131 </span>                : #define S_ISDIR(mode)    __S_ISTYPE((mode), __S_IFDIR)
<span class="lineNum">     132 </span>                : #define S_ISCHR(mode)    __S_ISTYPE((mode), __S_IFCHR)
<span class="lineNum">     133 </span>                : #define S_ISBLK(mode)    __S_ISTYPE((mode), __S_IFBLK)
<span class="lineNum">     134 </span>                : #define S_ISREG(mode)    __S_ISTYPE((mode), __S_IFREG)
<span class="lineNum">     135 </span>                : #ifdef __S_IFIFO
<span class="lineNum">     136 </span>                : # define S_ISFIFO(mode)  __S_ISTYPE((mode), __S_IFIFO)
<span class="lineNum">     137 </span>                : #endif
<span class="lineNum">     138 </span>                : #ifdef __S_IFLNK
<span class="lineNum">     139 </span>                : # define S_ISLNK(mode)   __S_ISTYPE((mode), __S_IFLNK)
<span class="lineNum">     140 </span>                : #endif
<span class="lineNum">     141 </span>                : 
<span class="lineNum">     142 </span>                : #if defined __USE_BSD &amp;&amp; !defined __S_IFLNK
<span class="lineNum">     143 </span>                : # define S_ISLNK(mode)  0
<span class="lineNum">     144 </span>                : #endif
<span class="lineNum">     145 </span>                : 
<span class="lineNum">     146 </span>                : #if (defined __USE_BSD || defined __USE_UNIX98) \
<span class="lineNum">     147 </span>                :     &amp;&amp; defined __S_IFSOCK
<span class="lineNum">     148 </span>                : # define S_ISSOCK(mode) __S_ISTYPE((mode), __S_IFSOCK)
<span class="lineNum">     149 </span>                : #endif
<span class="lineNum">     150 </span>                : 
<span class="lineNum">     151 </span>                : /* These are from POSIX.1b.  If the objects are not implemented using separate
<span class="lineNum">     152 </span>                :    distinct file types, the macros always will evaluate to zero.  Unlike the
<span class="lineNum">     153 </span>                :    other S_* macros the following three take a pointer to a `struct stat'
<span class="lineNum">     154 </span>                :    object as the argument.  */
<span class="lineNum">     155 </span>                : #ifdef  __USE_POSIX199309
<span class="lineNum">     156 </span>                : # define S_TYPEISMQ(buf) __S_TYPEISMQ(buf)
<span class="lineNum">     157 </span>                : # define S_TYPEISSEM(buf) __S_TYPEISSEM(buf)
<span class="lineNum">     158 </span>                : # define S_TYPEISSHM(buf) __S_TYPEISSHM(buf)
<span class="lineNum">     159 </span>                : #endif
<span class="lineNum">     160 </span>                : 
<span class="lineNum">     161 </span>                : 
<span class="lineNum">     162 </span>                : /* Protection bits.  */
<span class="lineNum">     163 </span>                : 
<span class="lineNum">     164 </span>                : #define S_ISUID __S_ISUID       /* Set user ID on execution.  */
<span class="lineNum">     165 </span>                : #define S_ISGID __S_ISGID       /* Set group ID on execution.  */
<span class="lineNum">     166 </span>                : 
<span class="lineNum">     167 </span>                : #if defined __USE_BSD || defined __USE_MISC || defined __USE_XOPEN
<span class="lineNum">     168 </span>                : /* Save swapped text after use (sticky bit).  This is pretty well obsolete.  */
<span class="lineNum">     169 </span>                : # define S_ISVTX        __S_ISVTX
<span class="lineNum">     170 </span>                : #endif
<span class="lineNum">     171 </span>                : 
<span class="lineNum">     172 </span>                : #define S_IRUSR __S_IREAD       /* Read by owner.  */
<span class="lineNum">     173 </span>                : #define S_IWUSR __S_IWRITE      /* Write by owner.  */
<span class="lineNum">     174 </span>                : #define S_IXUSR __S_IEXEC       /* Execute by owner.  */
<span class="lineNum">     175 </span>                : /* Read, write, and execute by owner.  */
<span class="lineNum">     176 </span>                : #define S_IRWXU (__S_IREAD|__S_IWRITE|__S_IEXEC)
<span class="lineNum">     177 </span>                : 
<span class="lineNum">     178 </span>                : #if defined __USE_MISC &amp;&amp; defined __USE_BSD
<span class="lineNum">     179 </span>                : # define S_IREAD        S_IRUSR
<span class="lineNum">     180 </span>                : # define S_IWRITE       S_IWUSR
<span class="lineNum">     181 </span>                : # define S_IEXEC        S_IXUSR
<span class="lineNum">     182 </span>                : #endif
<span class="lineNum">     183 </span>                : 
<span class="lineNum">     184 </span>                : #define S_IRGRP (S_IRUSR &gt;&gt; 3)    /* Read by group.  */
<span class="lineNum">     185 </span>                : #define S_IWGRP (S_IWUSR &gt;&gt; 3)    /* Write by group.  */
<span class="lineNum">     186 </span>                : #define S_IXGRP (S_IXUSR &gt;&gt; 3)    /* Execute by group.  */
<span class="lineNum">     187 </span>                : /* Read, write, and execute by group.  */
<span class="lineNum">     188 </span>                : #define S_IRWXG (S_IRWXU &gt;&gt; 3)
<span class="lineNum">     189 </span>                : 
<span class="lineNum">     190 </span>                : #define S_IROTH (S_IRGRP &gt;&gt; 3)    /* Read by others.  */
<span class="lineNum">     191 </span>                : #define S_IWOTH (S_IWGRP &gt;&gt; 3)    /* Write by others.  */
<span class="lineNum">     192 </span>                : #define S_IXOTH (S_IXGRP &gt;&gt; 3)    /* Execute by others.  */
<span class="lineNum">     193 </span>                : /* Read, write, and execute by others.  */
<span class="lineNum">     194 </span>                : #define S_IRWXO (S_IRWXG &gt;&gt; 3)
<span class="lineNum">     195 </span>                : 
<span class="lineNum">     196 </span>                : 
<span class="lineNum">     197 </span>                : #ifdef  __USE_BSD
<span class="lineNum">     198 </span>                : /* Macros for common mode bit masks.  */
<span class="lineNum">     199 </span>                : # define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) /* 0777 */
<span class="lineNum">     200 </span>                : # define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */
<span class="lineNum">     201 </span>                : # define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)/* 0666*/
<span class="lineNum">     202 </span>                : 
<span class="lineNum">     203 </span>                : # define S_BLKSIZE      512     /* Block size for `st_blocks'.  */
<span class="lineNum">     204 </span>                : #endif
<span class="lineNum">     205 </span>                : 
<span class="lineNum">     206 </span>                : 
<span class="lineNum">     207 </span>                : #ifndef __USE_FILE_OFFSET64
<span class="lineNum">     208 </span>                : /* Get file attributes for FILE and put them in BUF.  */
<span class="lineNum">     209 </span>                : extern int stat (__const char *__restrict __file,
<span class="lineNum">     210 </span>                :                  struct stat *__restrict __buf) __THROW __nonnull ((1, 2));
<span class="lineNum">     211 </span>                : 
<span class="lineNum">     212 </span>                : /* Get file attributes for the file, device, pipe, or socket
<span class="lineNum">     213 </span>                :    that file descriptor FD is open on and put them in BUF.  */
<span class="lineNum">     214 </span>                : extern int fstat (int __fd, struct stat *__buf) __THROW __nonnull ((2));
<span class="lineNum">     215 </span>                : #else
<span class="lineNum">     216 </span>                : # ifdef __REDIRECT_NTH
<span class="lineNum">     217 </span>                : extern int __REDIRECT_NTH (stat, (__const char *__restrict __file,
<span class="lineNum">     218 </span>                :                                   struct stat *__restrict __buf), stat64)
<span class="lineNum">     219 </span>                :      __nonnull ((1, 2));
<span class="lineNum">     220 </span>                : extern int __REDIRECT_NTH (fstat, (int __fd, struct stat *__buf), fstat64)
<span class="lineNum">     221 </span>                :      __nonnull ((2));
<span class="lineNum">     222 </span>                : # else
<span class="lineNum">     223 </span>                : #  define stat stat64
<span class="lineNum">     224 </span>                : #  define fstat fstat64
<span class="lineNum">     225 </span>                : # endif
<span class="lineNum">     226 </span>                : #endif
<span class="lineNum">     227 </span>                : #ifdef __USE_LARGEFILE64
<span class="lineNum">     228 </span>                : extern int stat64 (__const char *__restrict __file,
<span class="lineNum">     229 </span>                :                    struct stat64 *__restrict __buf) __THROW __nonnull ((1, 2));
<span class="lineNum">     230 </span>                : extern int fstat64 (int __fd, struct stat64 *__buf) __THROW __nonnull ((2));
<span class="lineNum">     231 </span>                : #endif
<span class="lineNum">     232 </span>                : 
<span class="lineNum">     233 </span>                : #ifdef __USE_ATFILE
<span class="lineNum">     234 </span>                : /* Similar to stat, get the attributes for FILE and put them in BUF.
<span class="lineNum">     235 </span>                :    Relative path names are interpreted relative to FD unless FD is
<span class="lineNum">     236 </span>                :    AT_FDCWD.  */
<span class="lineNum">     237 </span>                : # ifndef __USE_FILE_OFFSET64
<span class="lineNum">     238 </span>                : extern int fstatat (int __fd, __const char *__restrict __file,
<span class="lineNum">     239 </span>                :                     struct stat *__restrict __buf, int __flag)
<span class="lineNum">     240 </span>                :      __THROW __nonnull ((2, 3));
<span class="lineNum">     241 </span>                : # else
<span class="lineNum">     242 </span>                : #  ifdef __REDIRECT_NTH
<span class="lineNum">     243 </span>                : extern int __REDIRECT_NTH (fstatat, (int __fd, __const char *__restrict __file,
<span class="lineNum">     244 </span>                :                                      struct stat *__restrict __buf,
<span class="lineNum">     245 </span>                :                                      int __flag),
<span class="lineNum">     246 </span>                :                            fstatat64) __nonnull ((2, 3));
<span class="lineNum">     247 </span>                : #  else
<span class="lineNum">     248 </span>                : #   define fstatat fstatat64
<span class="lineNum">     249 </span>                : #  endif
<span class="lineNum">     250 </span>                : # endif
<span class="lineNum">     251 </span>                : 
<span class="lineNum">     252 </span>                : extern int fstatat64 (int __fd, __const char *__restrict __file,
<span class="lineNum">     253 </span>                :                       struct stat64 *__restrict __buf, int __flag)
<span class="lineNum">     254 </span>                :      __THROW __nonnull ((2, 3));
<span class="lineNum">     255 </span>                : #endif
<span class="lineNum">     256 </span>                : 
<span class="lineNum">     257 </span>                : #if defined __USE_BSD || defined __USE_XOPEN_EXTENDED
<span class="lineNum">     258 </span>                : # ifndef __USE_FILE_OFFSET64
<span class="lineNum">     259 </span>                : /* Get file attributes about FILE and put them in BUF.
<span class="lineNum">     260 </span>                :    If FILE is a symbolic link, do not follow it.  */
<span class="lineNum">     261 </span>                : extern int lstat (__const char *__restrict __file,
<span class="lineNum">     262 </span>                :                   struct stat *__restrict __buf) __THROW __nonnull ((1, 2));
<span class="lineNum">     263 </span>                : # else
<span class="lineNum">     264 </span>                : #  ifdef __REDIRECT_NTH
<span class="lineNum">     265 </span>                : extern int __REDIRECT_NTH (lstat,
<span class="lineNum">     266 </span>                :                            (__const char *__restrict __file,
<span class="lineNum">     267 </span>                :                             struct stat *__restrict __buf), lstat64)
<span class="lineNum">     268 </span>                :      __nonnull ((1, 2));
<span class="lineNum">     269 </span>                : #  else
<span class="lineNum">     270 </span>                : #   define lstat lstat64
<span class="lineNum">     271 </span>                : #  endif
<span class="lineNum">     272 </span>                : # endif
<span class="lineNum">     273 </span>                : # ifdef __USE_LARGEFILE64
<span class="lineNum">     274 </span>                : extern int lstat64 (__const char *__restrict __file,
<span class="lineNum">     275 </span>                :                     struct stat64 *__restrict __buf)
<span class="lineNum">     276 </span>                :      __THROW __nonnull ((1, 2));
<span class="lineNum">     277 </span>                : # endif
<span class="lineNum">     278 </span>                : #endif
<span class="lineNum">     279 </span>                : 
<span class="lineNum">     280 </span>                : /* Set file access permissions for FILE to MODE.
<span class="lineNum">     281 </span>                :    If FILE is a symbolic link, this affects its target instead.  */
<span class="lineNum">     282 </span>                : extern int chmod (__const char *__file, __mode_t __mode)
<span class="lineNum">     283 </span>                :      __THROW __nonnull ((1));
<span class="lineNum">     284 </span>                : 
<span class="lineNum">     285 </span>                : #ifdef __USE_BSD
<span class="lineNum">     286 </span>                : /* Set file access permissions for FILE to MODE.
<span class="lineNum">     287 </span>                :    If FILE is a symbolic link, this affects the link itself
<span class="lineNum">     288 </span>                :    rather than its target.  */
<span class="lineNum">     289 </span>                : extern int lchmod (__const char *__file, __mode_t __mode)
<span class="lineNum">     290 </span>                :      __THROW __nonnull ((1));
<span class="lineNum">     291 </span>                : #endif
<span class="lineNum">     292 </span>                : 
<span class="lineNum">     293 </span>                : /* Set file access permissions of the file FD is open on to MODE.  */
<span class="lineNum">     294 </span>                : #if defined __USE_BSD || defined __USE_XOPEN_EXTENDED
<span class="lineNum">     295 </span>                : extern int fchmod (int __fd, __mode_t __mode) __THROW;
<span class="lineNum">     296 </span>                : #endif
<span class="lineNum">     297 </span>                : 
<span class="lineNum">     298 </span>                : #ifdef __USE_ATFILE
<span class="lineNum">     299 </span>                : /* Set file access permissions of FILE relative to
<span class="lineNum">     300 </span>                :    the directory FD is open on.  */
<span class="lineNum">     301 </span>                : extern int fchmodat (int __fd, __const char *__file, __mode_t mode, int __flag)
<span class="lineNum">     302 </span>                :      __THROW __nonnull ((2)) __wur;
<span class="lineNum">     303 </span>                : #endif /* Use ATFILE.  */
<span class="lineNum">     304 </span>                : 
<span class="lineNum">     305 </span>                : 
<span class="lineNum">     306 </span>                : 
<span class="lineNum">     307 </span>                : /* Set the file creation mask of the current process to MASK,
<span class="lineNum">     308 </span>                :    and return the old creation mask.  */
<span class="lineNum">     309 </span>                : extern __mode_t umask (__mode_t __mask) __THROW;
<span class="lineNum">     310 </span>                : 
<span class="lineNum">     311 </span>                : #ifdef  __USE_GNU
<span class="lineNum">     312 </span>                : /* Get the current `umask' value without changing it.
<span class="lineNum">     313 </span>                :    This function is only available under the GNU Hurd.  */
<span class="lineNum">     314 </span>                : extern __mode_t getumask (void) __THROW;
<span class="lineNum">     315 </span>                : #endif
<span class="lineNum">     316 </span>                : 
<span class="lineNum">     317 </span>                : /* Create a new directory named PATH, with permission bits MODE.  */
<span class="lineNum">     318 </span>                : extern int mkdir (__const char *__path, __mode_t __mode)
<span class="lineNum">     319 </span>                :      __THROW __nonnull ((1));
<span class="lineNum">     320 </span>                : 
<span class="lineNum">     321 </span>                : #ifdef __USE_ATFILE
<span class="lineNum">     322 </span>                : /* Like mkdir, create a new directory with permission bits MODE.  But
<span class="lineNum">     323 </span>                :    interpret relative PATH names relative to the directory associated
<span class="lineNum">     324 </span>                :    with FD.  */
<span class="lineNum">     325 </span>                : extern int mkdirat (int __fd, __const char *__path, __mode_t __mode)
<span class="lineNum">     326 </span>                :      __THROW __nonnull ((2));
<span class="lineNum">     327 </span>                : #endif
<span class="lineNum">     328 </span>                : 
<span class="lineNum">     329 </span>                : /* Create a device file named PATH, with permission and special bits MODE
<span class="lineNum">     330 </span>                :    and device number DEV (which can be constructed from major and minor
<span class="lineNum">     331 </span>                :    device numbers with the `makedev' macro above).  */
<span class="lineNum">     332 </span>                : #if defined __USE_MISC || defined __USE_BSD || defined __USE_XOPEN_EXTENDED
<span class="lineNum">     333 </span>                : extern int mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
<span class="lineNum">     334 </span>                :      __THROW __nonnull ((1));
<span class="lineNum">     335 </span>                : #endif
<span class="lineNum">     336 </span>                : 
<span class="lineNum">     337 </span>                : #ifdef __USE_ATFILE
<span class="lineNum">     338 </span>                : /* Like mknod, create a new device file with permission bits MODE and
<span class="lineNum">     339 </span>                :    device number DEV.  But interpret relative PATH names relative to
<span class="lineNum">     340 </span>                :    the directory associated with FD.  */
<span class="lineNum">     341 </span>                : extern int mknodat (int __fd, __const char *__path, __mode_t __mode,
<span class="lineNum">     342 </span>                :                     __dev_t __dev) __THROW __nonnull ((2));
<span class="lineNum">     343 </span>                : #endif
<span class="lineNum">     344 </span>                : 
<span class="lineNum">     345 </span>                : 
<span class="lineNum">     346 </span>                : /* Create a new FIFO named PATH, with permission bits MODE.  */
<span class="lineNum">     347 </span>                : extern int mkfifo (__const char *__path, __mode_t __mode)
<span class="lineNum">     348 </span>                :      __THROW __nonnull ((1));
<span class="lineNum">     349 </span>                : 
<span class="lineNum">     350 </span>                : #ifdef __USE_ATFILE
<span class="lineNum">     351 </span>                : /* Like mkfifo, create a new FIFO with permission bits MODE.  But
<span class="lineNum">     352 </span>                :    interpret relative PATH names relative to the directory associated
<span class="lineNum">     353 </span>                :    with FD.  */
<span class="lineNum">     354 </span>                : extern int mkfifoat (int __fd, __const char *__path, __mode_t __mode)
<span class="lineNum">     355 </span>                :      __THROW __nonnull ((2));
<span class="lineNum">     356 </span>                : #endif
<span class="lineNum">     357 </span>                : 
<span class="lineNum">     358 </span>                : #ifdef __USE_ATFILE
<span class="lineNum">     359 </span>                : /* Set file access and modification times relative to directory file
<span class="lineNum">     360 </span>                :    descriptor.  */
<span class="lineNum">     361 </span>                : extern int utimensat (int __fd, __const char *__path,
<span class="lineNum">     362 </span>                :                       __const struct timespec __times[2],
<span class="lineNum">     363 </span>                :                       int __flags)
<span class="lineNum">     364 </span>                :      __THROW __nonnull ((2));
<span class="lineNum">     365 </span>                : #endif
<span class="lineNum">     366 </span>                : 
<span class="lineNum">     367 </span>                : #ifdef __USE_GNU
<span class="lineNum">     368 </span>                : /* XXX This will change to the macro for the next 2008 POSIX revision.  */
<span class="lineNum">     369 </span>                : /* Set file access and modification times of the file associated with FD.  */
<span class="lineNum">     370 </span>                : extern int futimens (int __fd, __const struct timespec __times[2]) __THROW;
<span class="lineNum">     371 </span>                : #endif
<span class="lineNum">     372 </span>                : 
<span class="lineNum">     373 </span>                : /* To allow the `struct stat' structure and the file type `mode_t'
<span class="lineNum">     374 </span>                :    bits to vary without changing shared library major version number,
<span class="lineNum">     375 </span>                :    the `stat' family of functions and `mknod' are in fact inline
<span class="lineNum">     376 </span>                :    wrappers around calls to `xstat', `fxstat', `lxstat', and `xmknod',
<span class="lineNum">     377 </span>                :    which all take a leading version-number argument designating the
<span class="lineNum">     378 </span>                :    data structure and bits used.  &lt;bits/stat.h&gt; defines _STAT_VER with
<span class="lineNum">     379 </span>                :    the version number corresponding to `struct stat' as defined in
<span class="lineNum">     380 </span>                :    that file; and _MKNOD_VER with the version number corresponding to
<span class="lineNum">     381 </span>                :    the S_IF* macros defined therein.  It is arranged that when not
<span class="lineNum">     382 </span>                :    inlined these function are always statically linked; that way a
<span class="lineNum">     383 </span>                :    dynamically-linked executable always encodes the version number
<span class="lineNum">     384 </span>                :    corresponding to the data structures it uses, so the `x' functions
<span class="lineNum">     385 </span>                :    in the shared library can adapt without needing to recompile all
<span class="lineNum">     386 </span>                :    callers.  */
<span class="lineNum">     387 </span>                : 
<span class="lineNum">     388 </span>                : #ifndef _STAT_VER
<span class="lineNum">     389 </span>                : # define _STAT_VER      0
<span class="lineNum">     390 </span>                : #endif
<span class="lineNum">     391 </span>                : #ifndef _MKNOD_VER
<span class="lineNum">     392 </span>                : # define _MKNOD_VER     0
<span class="lineNum">     393 </span>                : #endif
<span class="lineNum">     394 </span>                : 
<span class="lineNum">     395 </span>                : /* Wrappers for stat and mknod system calls.  */
<span class="lineNum">     396 </span>                : #ifndef __USE_FILE_OFFSET64
<span class="lineNum">     397 </span>                : extern int __fxstat (int __ver, int __fildes, struct stat *__stat_buf)
<span class="lineNum">     398 </span>                :      __THROW __nonnull ((3));
<span class="lineNum">     399 </span>                : extern int __xstat (int __ver, __const char *__filename,
<span class="lineNum">     400 </span>                :                     struct stat *__stat_buf) __THROW __nonnull ((2, 3));
<span class="lineNum">     401 </span>                : extern int __lxstat (int __ver, __const char *__filename,
<span class="lineNum">     402 </span>                :                      struct stat *__stat_buf) __THROW __nonnull ((2, 3));
<span class="lineNum">     403 </span>                : extern int __fxstatat (int __ver, int __fildes, __const char *__filename,
<span class="lineNum">     404 </span>                :                        struct stat *__stat_buf, int __flag)
<span class="lineNum">     405 </span>                :      __THROW __nonnull ((3, 4));
<span class="lineNum">     406 </span>                : #else
<span class="lineNum">     407 </span>                : # ifdef __REDIRECT_NTH
<span class="lineNum">     408 </span>                : extern int __REDIRECT_NTH (__fxstat, (int __ver, int __fildes,
<span class="lineNum">     409 </span>                :                                       struct stat *__stat_buf), __fxstat64)
<span class="lineNum">     410 </span>                :      __nonnull ((3));
<span class="lineNum">     411 </span>                : extern int __REDIRECT_NTH (__xstat, (int __ver, __const char *__filename,
<span class="lineNum">     412 </span>                :                                      struct stat *__stat_buf), __xstat64)
<span class="lineNum">     413 </span>                :      __nonnull ((2, 3));
<span class="lineNum">     414 </span>                : extern int __REDIRECT_NTH (__lxstat, (int __ver, __const char *__filename,
<span class="lineNum">     415 </span>                :                                       struct stat *__stat_buf), __lxstat64)
<span class="lineNum">     416 </span>                :      __nonnull ((2, 3));
<span class="lineNum">     417 </span>                : extern int __REDIRECT_NTH (__fxstatat, (int __ver, int __fildes,
<span class="lineNum">     418 </span>                :                                         __const char *__filename,
<span class="lineNum">     419 </span>                :                                         struct stat *__stat_buf, int __flag),
<span class="lineNum">     420 </span>                :                            __fxstatat64) __nonnull ((3, 4));
<span class="lineNum">     421 </span>                : 
<span class="lineNum">     422 </span>                : # else
<span class="lineNum">     423 </span>                : #  define __fxstat __fxstat64
<span class="lineNum">     424 </span>                : #  define __xstat __xstat64
<span class="lineNum">     425 </span>                : #  define __lxstat __lxstat64
<span class="lineNum">     426 </span>                : # endif
<span class="lineNum">     427 </span>                : #endif
<span class="lineNum">     428 </span>                : 
<span class="lineNum">     429 </span>                : #ifdef __USE_LARGEFILE64
<span class="lineNum">     430 </span>                : extern int __fxstat64 (int __ver, int __fildes, struct stat64 *__stat_buf)
<span class="lineNum">     431 </span>                :      __THROW __nonnull ((3));
<span class="lineNum">     432 </span>                : extern int __xstat64 (int __ver, __const char *__filename,
<span class="lineNum">     433 </span>                :                       struct stat64 *__stat_buf) __THROW __nonnull ((2, 3));
<span class="lineNum">     434 </span>                : extern int __lxstat64 (int __ver, __const char *__filename,
<span class="lineNum">     435 </span>                :                        struct stat64 *__stat_buf) __THROW __nonnull ((2, 3));
<span class="lineNum">     436 </span>                : extern int __fxstatat64 (int __ver, int __fildes, __const char *__filename,
<span class="lineNum">     437 </span>                :                          struct stat64 *__stat_buf, int __flag)
<span class="lineNum">     438 </span>                :      __THROW __nonnull ((3, 4));
<span class="lineNum">     439 </span>                : #endif
<span class="lineNum">     440 </span>                : extern int __xmknod (int __ver, __const char *__path, __mode_t __mode,
<span class="lineNum">     441 </span>                :                      __dev_t *__dev) __THROW __nonnull ((2, 4));
<span class="lineNum">     442 </span>                : 
<span class="lineNum">     443 </span>                : extern int __xmknodat (int __ver, int __fd, __const char *__path,
<span class="lineNum">     444 </span>                :                        __mode_t __mode, __dev_t *__dev)
<span class="lineNum">     445 </span>                :      __THROW __nonnull ((3, 5));
<span class="lineNum">     446 </span>                : 
<span class="lineNum">     447 </span>                : #if defined __GNUC__ &amp;&amp; __GNUC__ &gt;= 2 &amp;&amp; defined __USE_EXTERN_INLINES
<span class="lineNum">     448 </span>                : /* Inlined versions of the real stat and mknod functions.  */
<span class="lineNum">     449 </span>                : 
<span class="lineNum">     450 </span>                : __extern_inline int
<span class="lineNum">     451 </span><span class="lineNoCov">              0 : __NTH (stat (__const char *__path, struct stat *__statbuf))</span>
<span class="lineNum">     452 </span>                : {
<span class="lineNum">     453 </span><span class="lineNoCov">              0 :   return __xstat (_STAT_VER, __path, __statbuf);</span>
<span class="lineNum">     454 </span>                : }
<span class="lineNum">     455 </span>                : 
<span class="lineNum">     456 </span>                : # if defined __USE_BSD || defined __USE_XOPEN_EXTENDED
<span class="lineNum">     457 </span>                : __extern_inline int
<span class="lineNum">     458 </span><span class="lineNoCov">              0 : __NTH (lstat (__const char *__path, struct stat *__statbuf))</span>
<span class="lineNum">     459 </span>                : {
<span class="lineNum">     460 </span><span class="lineNoCov">              0 :   return __lxstat (_STAT_VER, __path, __statbuf);</span>
<span class="lineNum">     461 </span>                : }
<span class="lineNum">     462 </span>                : # endif
<span class="lineNum">     463 </span>                : 
<span class="lineNum">     464 </span>                : __extern_inline int
<span class="lineNum">     465 </span><span class="lineNoCov">              0 : __NTH (fstat (int __fd, struct stat *__statbuf))</span>
<span class="lineNum">     466 </span>                : {
<span class="lineNum">     467 </span><span class="lineNoCov">              0 :   return __fxstat (_STAT_VER, __fd, __statbuf);</span>
<span class="lineNum">     468 </span>                : }
<span class="lineNum">     469 </span>                : 
<span class="lineNum">     470 </span>                : # ifdef __USE_ATFILE
<span class="lineNum">     471 </span>                : __extern_inline int
<span class="lineNum">     472 </span><span class="lineNoCov">              0 : __NTH (fstatat (int __fd, __const char *__filename, struct stat *__statbuf,</span>
<span class="lineNum">     473 </span>                :                 int __flag))
<span class="lineNum">     474 </span>                : {
<span class="lineNum">     475 </span><span class="lineNoCov">              0 :   return __fxstatat (_STAT_VER, __fd, __filename, __statbuf, __flag);</span>
<span class="lineNum">     476 </span>                : }
<span class="lineNum">     477 </span>                : # endif
<span class="lineNum">     478 </span>                : 
<span class="lineNum">     479 </span>                : # if defined __USE_MISC || defined __USE_BSD
<span class="lineNum">     480 </span>                : __extern_inline int
<span class="lineNum">     481 </span><span class="lineNoCov">              0 : __NTH (mknod (__const char *__path, __mode_t __mode, __dev_t __dev))</span>
<span class="lineNum">     482 </span>                : {
<span class="lineNum">     483 </span><span class="lineNoCov">              0 :   return __xmknod (_MKNOD_VER, __path, __mode, &amp;__dev);</span>
<span class="lineNum">     484 </span>                : }
<span class="lineNum">     485 </span>                : # endif
<span class="lineNum">     486 </span>                : 
<span class="lineNum">     487 </span>                : # ifdef __USE_ATFILE
<span class="lineNum">     488 </span>                : __extern_inline int
<span class="lineNum">     489 </span><span class="lineNoCov">              0 : __NTH (mknodat (int __fd, __const char *__path, __mode_t __mode,</span>
<span class="lineNum">     490 </span>                :                 __dev_t __dev))
<span class="lineNum">     491 </span>                : {
<span class="lineNum">     492 </span><span class="lineNoCov">              0 :   return __xmknodat (_MKNOD_VER, __fd, __path, __mode, &amp;__dev);</span>
<span class="lineNum">     493 </span>                : }
<span class="lineNum">     494 </span>                : # endif
<span class="lineNum">     495 </span>                : 
<span class="lineNum">     496 </span>                : # if defined __USE_LARGEFILE64 \
<span class="lineNum">     497 </span>                :   &amp;&amp; (! defined __USE_FILE_OFFSET64 \
<span class="lineNum">     498 </span>                :       || (defined __REDIRECT_NTH &amp;&amp; defined __OPTIMIZE__))
<span class="lineNum">     499 </span>                : __extern_inline int
<span class="lineNum">     500 </span><span class="lineNoCov">              0 : __NTH (stat64 (__const char *__path, struct stat64 *__statbuf))</span>
<span class="lineNum">     501 </span>                : {
<span class="lineNum">     502 </span><span class="lineNoCov">              0 :   return __xstat64 (_STAT_VER, __path, __statbuf);</span>
<span class="lineNum">     503 </span>                : }
<span class="lineNum">     504 </span>                : 
<span class="lineNum">     505 </span>                : #  if defined __USE_BSD || defined __USE_XOPEN_EXTENDED
<span class="lineNum">     506 </span>                : __extern_inline int
<span class="lineNum">     507 </span><span class="lineNoCov">              0 : __NTH (lstat64 (__const char *__path, struct stat64 *__statbuf))</span>
<span class="lineNum">     508 </span>                : {
<span class="lineNum">     509 </span><span class="lineNoCov">              0 :   return __lxstat64 (_STAT_VER, __path, __statbuf);</span>
<span class="lineNum">     510 </span>                : }
<span class="lineNum">     511 </span>                : #  endif
<span class="lineNum">     512 </span>                : 
<span class="lineNum">     513 </span>                : __extern_inline int
<span class="lineNum">     514 </span><span class="lineNoCov">              0 : __NTH (fstat64 (int __fd, struct stat64 *__statbuf))</span>
<span class="lineNum">     515 </span>                : {
<span class="lineNum">     516 </span><span class="lineNoCov">              0 :   return __fxstat64 (_STAT_VER, __fd, __statbuf);</span>
<span class="lineNum">     517 </span>                : }
<span class="lineNum">     518 </span>                : 
<span class="lineNum">     519 </span>                : #  ifdef __USE_GNU
<span class="lineNum">     520 </span>                : __extern_inline int
<span class="lineNum">     521 </span><span class="lineNoCov">              0 : __NTH (fstatat64 (int __fd, __const char *__filename, struct stat64 *__statbuf,</span>
<span class="lineNum">     522 </span>                :                   int __flag))
<span class="lineNum">     523 </span>                : {
<span class="lineNum">     524 </span><span class="lineNoCov">              0 :   return __fxstatat64 (_STAT_VER, __fd, __filename, __statbuf, __flag);</span>
<span class="lineNum">     525 </span>                : }
<span class="lineNum">     526 </span>                : #  endif
<span class="lineNum">     527 </span>                : 
<span class="lineNum">     528 </span>                : # endif
<span class="lineNum">     529 </span>                : 
<span class="lineNum">     530 </span>                : #endif
<span class="lineNum">     531 </span>                : 
<span class="lineNum">     532 </span>                : __END_DECLS
<span class="lineNum">     533 </span>                : 
<span class="lineNum">     534 </span>                : 
<span class="lineNum">     535 </span>                : #endif /* sys/stat.h  */
</pre>
      </td>
    </tr>
  </table>
  <br>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
  <tr><td class="ruler"><img src="../../../glass.png" width=3 height=3 alt=""></td></tr>
  <tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LTP GCOV extension version 1.6</a></td></tr>
  </table>
  <br>

</body>
</html>
